﻿using TomNet.App.Model.DTO;
using TomNet.SqlSugarCore.Entity;

namespace TomNet.App.Model.DB
{
	/// <summary>
	/// 订单收益信息
	/// </summary>
	public class BusinessIncomeRunnings : IdentityEntityBase<int>
	{
		/// <summary>
		/// 交易ID
		/// </summary>
		public int BusinessId { get; set; }

		/// <summary>
		/// 收益日期
		/// </summary>
		public System.DateTime CreatedTime { get; set; } = System.DateTime.Now;

		/// <summary>
		/// 运行时间(分钟)
		/// </summary>
		public int RunTime { get; set; }

		/// <summary>
		/// 收益（BTC）
		/// </summary>
		public decimal Amount { get; set; }

		/// <summary>
		/// 电费（元）
		/// </summary>
		public decimal ElectricCharge { get; set; }

		/// <summary>
		/// 电费（BTC）
		/// </summary>
		public decimal ElectricChargeBTC { get; set; }

		/// <summary>
		/// 电费余额（元）
		/// </summary>
		public decimal ElectricChargeBalance { get; set; }

		/// <summary>
		/// 币价（美元）
		/// </summary>
		public decimal CoinPrice { get; set; }

		/// <summary>
		/// 美元汇率
		/// </summary>
		public decimal Exchange { get; set; }
	}
}
